package com.hbun.cxcy.config;

import com.hbun.cxcy.interceptor.LoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
public class LoginConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new LoginInterceptor())
//                .addPathPatterns("/cxcy/admin/**")
//                .addPathPatterns("/cxcy/admin/login")
//                .addPathPatterns("/cxcy/admin/register");
    }
}
